  <table>
      <thead>
          <tr>
              <th>用户名</th>
              <th>医生姓名</th>
              <th>工作单位</th>
              <th>科室</th>
              <th>职称</th>
              <th>手机号</th>
              <th>病例ID</th>
              <th>患者姓名</th>
              <th>年龄</th>
              <th>性别</th>
              <th>身高（CM）</th>
              <th>体重（KG）</th>
              <th>病例来源</th>
              <th>病例照片附件</th>
          </tr>

      </thead>


      <tbody>
          @foreach($medical as $medical)
          <tr>
              @if(isset($medical->memberDoctor->phone) && !empty($medical->memberDoctor->phone))
              <td>{{ $medical->memberDoctor->phone }}</td>
              @else
              <td>未填写</td>
              @endif

              @if(isset($medical->memberDoctor->real_name) && !empty($medical->memberDoctor->real_name))
              <td>{{ $medical->memberDoctor->real_name }}</td>
              @else
              <td>未填写</td>
              @endif

              @if(isset($medical->memberDoctor->unit) && !empty($medical->memberDoctor->unit))
              <td>{{ $medical->memberDoctor->unit }}</td>
              @else
              <td>未填写</td>
              @endif

              @if(isset($medical->memberDoctor->department) && !empty($medical->memberDoctor->unit))
              <td>{{ $medical->memberDoctor->department }}</td>
              @else
              <td>未填写</td>
              @endif

              @if(isset($medical->memberDoctor->title) && !empty($medical->memberDoctor->title))
              <td>{{ $medical->memberDoctor->title }}</td>
              @else
              <td>未填写</td>
              @endif

              @if(isset($medical->memberDoctor->phone) && !empty($medical->memberDoctor->phone))
              <td>{{ $medical->memberDoctor->phone }}</td>
              @else
              <td>未填写</td>
              @endif

              <td>{{ $medical->id }}</td>
              <td>{{ $medical->name }}</td>
              <!-- 年龄 -->
              <td>{{ $medical->age }}</td>
              <!-- 性别 -->
              <td>{{ $medical->sex }}</td>
              <!-- 身高（CM） -->
              <td>{{ $medical->height }}</td>
              <!-- 体重（KG） -->
              <td>{{ $medical->weight }}</td>
              <!-- 病例来源 -->
              <td>{{ $medical->source }}</td>

              <td>{{ $medical->attachments }}</td>
          </tr>
          @endforeach
      </tbody>
  </table>